package team.yidong.fenda.wx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import team.yidong.fenda.wx.Service.WxAcceptService;

/**
 * Created by xuanlong on 2017/11/7.
 */
@Controller
public class WxAcceptController {
    @Autowired
    WxAcceptService wxAcceptService;


    @RequestMapping("/wx/accept")
    @ResponseBody
    public String accept(Integer answerId, Double money, String getDate) throws Exception {
        return wxAcceptService.accept(answerId, money, getDate);
    }
}
